﻿<Window x:Class="Arcanum.Game.Client.Presentation.MainWindow"
        xmlns:v="clr-namespace:Arcanum.Game.Client.Presentation.Views"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:Arcanum.Game.Client.Presentation.ViewModels"
        DataContext="{Binding Source={StaticResource Locator}, Path=Main}"
        Title="MainWindow" Height="350" Width="525" xmlns:my="clr-namespace:Arcanum.Game.Client.Presentation">
    <DockPanel>
        <Menu IsMainMenu="True" DockPanel.Dock="Top">
            <MenuItem Header="_Main">
                <MenuItem Header="_Console" Command="{Binding Path=ToggleConsoleCommand}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=my:MainWindow, AncestorLevel=1}}" />
                <MenuItem Header="_Exit" Command="{Binding Path=ExitCommand}" />
            </MenuItem>
        </Menu>
        <DockPanel>
            <TabControl>
                <TabItem>
                    <Frame NavigationUIVisibility="Hidden"
                        Source="Views/GamePage.xaml" />
                </TabItem>
                <TabItem x:Name="consoleTab" 
                         Header="[console]" 
                         Visibility="{Binding Path=ConsoleVisibility}">
                    <v:ConsoleControl />
                </TabItem>
            </TabControl>
        </DockPanel>
        
    </DockPanel>
</Window>
